<template>
    <view class="container">
      <wn-calendar 
        ref="calendar" 
        :data="[{date:'2023/12/12',text:'显示文本',type:2}]" 
        :isBorder="true" 
        :isLess="false" 
        :colors="['#f3a73f', '#2979ff', '#8f939c', '#18bc37', '#e43d33']" 
         :isEn="false"
         format="/"
        @change="onChange" 
        @choose="onChoose" 
      ></wn-calendar>
    </view>
</template>

<script>
export default {
    data() {
        return {
            // 上传图片域名
           
        };
    },
    onLoad() {
        // 设置预览图片
       
    },
    methods: {
        onChange(e) {
			console.log(e);
		},
		onChoose(item) {
			console.log(item);
			// item.text = "打卡";
			this.$set(item,text,"打卡")
		}
    }
};
</script>

<style lang="scss">
.s-add-list-btn-icon {
    font-size: 80rpx;
    height: 80rpx;
    line-height: 80rpx;
    margin-bottom: 20rpx;
    color: #999;
}
</style>